<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/jquery-2.0.3.min.js" ></script>
	</head>
	<body>
		<button onclick="send()">测试</button>
		<script>
			//JSON.stringify(mytable.params),
			function send(){
				$.ajax({
			    type: "GET",
			    url: "http://localhost:8080/oauth/authorize",
			    data: {
			    	response_type:"code",
			    	client_id:"jinfo",
			    	redirect_uri:"http://example.com",
			    	scope:"all"
			    },
			    contentType: "application/json",
			    dataType: "json",
			    beforeSend: function(request) {                
			               request.setRequestHeader("Authorization", token);
			    },
			    success: function(data) {
				console.log(data)
			    },
			    error: function(data) {
			
			    }
			});        
				
			}bearer 9a4048b5-df7f-41fa-bf93-a7adccb54c9c
			
		</script>
	</body>
</html>
